<?php
/*	Конфиг для Epi */
$routes=array(
  array('get','/', 'Geo/def'),
	array('get','/countries/?', 'Geo/getCountries'),
	array('get','/country/?([A-Z]{2})?/?', 'Geo/getCountry'),
	array('get','/regions/([A-Z]{2})?/?', 'Geo/getRegions', 'page=[all|\d+]'),
	array('get','/region/(rg\w{32})?/?', 'Geo/getRegion'),
	array('get','/cities/([A-Z]{2,2}|rg\w{32})?/?','Geo/getCities', 'page=[all|\d+]'),
	array('get','/city/(ct\w{32})?/?','Geo/getCity'),
	array('get','/urbans/(\w{34})?/?', 'Geo/getUrbans' , 'page=[\d+]'),
	array('get','/urbanareas/(\w{34})?/?', 'Geo/getUrbans', 'page=[\d+]'),
	array('get','/urban/?(ub\w{32})?/?', 'Geo/getUrban'),
	array('get','/urbanarea/?(ub\w{32})?/?', 'Geo/getUrban'),
	array('get','/addrs/?([A-Z]{2,2}|\w{34})?/?','Geo/getAddrs'),
	array('get','/addr/?(ad\w{32})?/?','Geo/getAddr'),
	array('get','/points/([A-Z]{2,2}|\w{34})/?', 'Geo/getPoints' , 'page=[all|\d+]'),
	array('get','/point/?(pt\w{32})?/?', 'Geo/getPoint'),//point/id
	array('get','/networks/(\w+)?/?', 'Geo/getNetworks' , 'page=[all|\d+]'),
	array('get','/network/?(nt\w{32})?/?', 'Geo/getNetwork'),
	array('get','/network/(\w+)/?', 'Geo/findNetwok'),
	array('get','/pointsNear/(\d+\.\d+)/(\d+\.\d+)/?(\d*)/?', 'Geo/getPointsNear', 'page=[all|\d+]'),// /pointsNear/lat lng/radius
  array('get','/networksNear/(\d+\.\d+)/(\d+\.\d+)/?(\d*)/?', 'Geo/getNetworksNear', 'page=[all|\d+]'),// /networksNear/lat lng/radius
  
  array('post','/country', 'Geo/postCountry'),
  array('post','/region', 'Geo/postRegion'),
  array('post','/city', 'Geo/postCity'),
  array('post','/urbanarea', 'Geo/postUrban'),
  array('post','/addr', 'Geo/postAddr'),
  array('post','/network', 'Geo/postNet'),
  array('post','/point', 'Geo/postPoint'),
  array('post','/pointManual', 'Geo/postPointManual'),
  array('post','/mergeNet', 'Geo/mergeNet'),
);
return $routes;
?>